
public class Practice8_1_2 {
	public static void main(String[] args){
		Thread ps1 = new Thread( new PrintString_2("Thread1!"));
		Thread ps2 = new Thread( new PrintString_2("Thread2!"));
		Thread ps3 = new Thread( new PrintString_2("Thread3!"));
		Thread ps4 = new Thread( new PrintString_2("Thread4!"));
		Thread ps5 = new Thread( new PrintString_2("Thread5!"));
		ps1.start();
		ps2.start();
		ps3.start();
		ps4.start();
		ps5.start();
	}
}

class PrintString_2 implements Runnable{
	private String str;
	public PrintString_2(String str) {
		this.str = str;
	}
	public void run() {
		for (int i =0; i<3; i++){
			System.out.print(str+" ");
		}
	}
}
